﻿using CL.Business.BLL;
using CL.Business.Entity;
using CL.Json.Entity;
using CL.Tools.Common;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Services;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace CL.UnionWeb.union
{
    public partial class MyNotice : BasePage
    {
        public List<NoticeEntity> Entitys = null;
        public const int PageSize = 10;  //每页显示条数
        public NoticeBLL bll = new NoticeBLL();
        public int iPage = 1;
        public string Keys = string.Empty;
        public int iRead = -1;
        public int iCurrentListCount = 0;
        public int UnReadCount = 0;

        protected void Page_Load(object sender, EventArgs e)
        {
            Page.Title = "推广联盟-公告";
            string page = Request.QueryString["page"];
            Keys = Request.QueryString["Keys"];
            string strRead = Request.QueryString["read"];
            if (!string.IsNullOrEmpty(strRead))
                iRead = int.Parse(strRead);

            if (!string.IsNullOrEmpty(page))
                iPage = int.Parse(page);

            var Entity = base.GetUnionInfo();
            Entitys = bll.QueryMyNotice(Entity.AccountID, iRead, Keys, iPage, PageSize, ref iCurrentListCount, ref UnReadCount);
        }
    }
}